<div class="title-menu">
    <h2>Bảng đơn hàng chi tiết</h2>
</div>
<nav class="bonus">
    <a href="<?php echo base_url("backend/orders");?>"><< Quay lại</a>
</nav>
<article>
    <table cellspacing="0" cellpadding="5" border="1">
        <tr>            
            <th>Hình ảnh</th>
            <th>Tên sản phẩm</th>     
            <th>Kích thước</th>
            <th>Màu</th>
            <th>Phụ kiện</th>
            <th>Số lượng</th>            
            <th>Thành tiền</th>
        </tr>
        <?php
        if (isset($orders) && count($orders))
            foreach ($orders as $order) {
                ?>
                <tr>                   
                    <td><img src="<?php echo base_url($order->img); ?>" width="100"></td>
                    <td><?php echo $order->name; ?></td>
                    <td><?php echo $order->size; ?></td>
                    <td><?php echo $order->color; ?></td>
                    <td><?php echo $order->bonus; ?></td>
                    <td><?php echo $order->qty; ?></td>
                    <td><?php echo number_format($order->subtotal); ?></td>                                      
                </tr>        
                <?php
            }
        ?>
    </table>
    
</article>